package com.baizhi.dao;

import com.baizhi.entity.CmfzArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmfzArticleMapper {

    List<CmfzArticle> selectCmfzArticleDatagrid(@Param("start")int start, @Param("rows")int rows);

    List<CmfzArticle> selectFirstTwoArticle(int userId);

    List<CmfzArticle> getGuruArticle(int userId);

    List<CmfzArticle> getNoGuruArticle(int userId);

    List<CmfzArticle> getAllArticle();

    CmfzArticle getOneArticle(int articleId);

    int selectCmfzArticleCount();

    void addArticle(CmfzArticle cmfzArticle);

    void deleteSomeArticles(int[] ids);

    void updateArticle(CmfzArticle cmfzArticle);
}